<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
    <!-- meta name="viewport" content="width=device-width, initial-scale=1.0" -->
    <meta name="description" content="">
    <meta name="author" content="">
	<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/layout.css" rel="stylesheet">
    <!-- Le styles 
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap.css" rel="stylesheet">
    
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap-responsive.css" rel="stylesheet">
-->
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <!-- Fav and touch icons
    <link rel="shortcut icon" href="../assets/ico/favicon.ico">
     -->

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<div class="container warp" id="page">
<!--
	<div id="header">
		<div id="logo"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/logo.png" alt="<?php echo CHtml::encode(Yii::app()->name); ?>" title="<?php echo CHtml::encode(Yii::app()->name); ?>"/></div>
	</div> header -->

	<div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
          <a class="brand" href="<?php echo Yii::app()->request->baseUrl; ?>"><?php echo Yii::t('layout',Yii::app()->name);?></a>
          <div class="nav-collapse collapse">
          
            <p class="navbar-text pull-right">
            <!--
             <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/logo.png"/>
             -->
            </p>
            
              <?php $this->widget('zii.widgets.CMenu',array(
              'htmlOptions'=>array(
					'class' => 'nav'
				),
			'items'=>array(
				array('label'=>Yii::t('layout','Home'), 'url'=>array('post/index')),
				array('label'=>Yii::t('layout','Contact'), 'url'=>array('site/contact')),
				array('label'=>Yii::t('layout','About'), 'url'=>array('site/page', 'view'=>'about')),
				array('label'=>Yii::t('layout','Login'), 'url'=>array('site/login'), 'visible'=>Yii::app()->user->isGuest),
				array('label'=>Yii::t('layout','Logout'). '('.Yii::app()->user->name.')', 'url'=>array('site/logout'), 'visible'=>!Yii::app()->user->isGuest),
				array('url'=>Yii::app()->getModule('user')->loginUrl, 'label'=>Yii::app()->getModule('user')->t("Login"), 'visible'=>Yii::app()->user->isGuest),
				array('url'=>Yii::app()->getModule('user')->registrationUrl, 'label'=>Yii::app()->getModule('user')->t("Register"), 'visible'=>Yii::app()->user->isGuest),
				array('url'=>Yii::app()->getModule('user')->profileUrl, 'label'=>Yii::app()->getModule('user')->t("Profile"), 'visible'=>!Yii::app()->user->isGuest),
				array('url'=>Yii::app()->getModule('user')->logoutUrl, 'label'=>Yii::app()->getModule('user')->t("Logout").' ('.Yii::app()->user->name.')', 'visible'=>!Yii::app()->user->isGuest),
			),
		)); ?>
          </div><!--/.nav-collapse -->
        </div>
      </div>
    </div>

	<?php $this->widget('zii.widgets.CBreadcrumbs', array(
		'links'=>$this->breadcrumbs,
	),array('class'=>'container-fluid')
	); ?><!-- breadcrumbs -->

	<?php echo $content; ?>
	<hr />
	<footer>
		<img src="<?php echo Yii::app()->request->baseUrl; ?>/images/logo.png" alt="<?php echo CHtml::encode(Yii::app()->name); ?>" title="<?php echo CHtml::encode(Yii::app()->name); ?>"/>
		
		Copyright &copy; <?php echo date('Y'); ?> by <a  href="<?php echo Yii::app()->request->baseUrl; ?>"><?php echo Yii::t('layout','Hroze Soft');?></a>.<?php echo Yii::t('layout','All Rights Reserved.');?><br/>
		<br/>
	</footer>

</div><!-- page -->

</body>
</html>